package com.xiaoq.distribution.service;

import com.xiaoq.distribution.entity.SettleHistoryEntity;
import com.xiaoq.vo.PagingVo;

import java.util.List;

/**
 * Created by chenjh on 2018/7/11.
 */
public interface ISettleHistoryService {

    void save(SettleHistoryEntity settleHistoryEntity);

    List<SettleHistoryEntity> getSettleHistoryListWithDistriIdList(String shopId, List<String> distributorIdList,Integer theLatestSettle);

    SettleHistoryEntity getByDistributorId(String distributorId, Integer theLatestSettle);

    boolean updateById(SettleHistoryEntity settleHistoryEntity);

    SettleHistoryEntity getById(String id);

    List<SettleHistoryEntity> getSettleHistoryList(String shopId, String distributorId, Integer theLatestSettle);

    List<SettleHistoryEntity> getSettleHistoryList(String shopId, String distributorId, Integer theLatestSettle, Long settleBeginTime, Long settleEndTime, PagingVo pagingVo);

    long getSettleHistoryCount(String shopId, String distributorId, Integer theLatestSettle, Long settleBeginTime, Long settleEndTime, PagingVo pagingVo);
}
